package com.renli.result;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
@Data
@NoArgsConstructor
public class R implements Serializable {
    private Integer key;
    private Object data;
    private String message;

    public R(Integer key, Object data, String message) {
        this.key = key;
        this.data = data;
        this.message = message;
    }

    public R(Integer key, Object data) {
        this.key = key;
        this.data = data;
    }
}
